mod organ;
mod user;
mod role;
mod kpi_import_xgwcl;
use shq_common::prelude::Callback;

pub fn get_callback<'a>(
    name: &str,
) -> Option<Box<dyn Callback + 'a>> {
    match name {
        "organ" => Some(Box::new(organ::OrganCallBack::new())),
        "user" => Some(Box::new(user::UserCallBack::new())),
        "role" => Some(Box::new(role::RoleCallback::new())),
        "kpi_import_xgwcl" => Some(Box::new(kpi_import_xgwcl::KpiImportXgwclCallBack::new())),
        "kpi_import_lhzb" => Some(Box::new(kpi_import_xgwcl::KpiImportXgwclCallBack::new())),
        "kpi_import_pjzb" => Some(Box::new(kpi_import_xgwcl::KpiImportXgwclCallBack::new())),
        _ => None,
    }
}
